Color Printing

ABSTRACT

A method of printing a pixel defined by C, M, Y color values having a sum that is not less than a predetermined maximum value VMAX, including assigning a maximum of the C, M, Y values to max_color; assigning a minimum of the C, M, Y values to min_color; selecting a black color value K that is not greater than a minimum of min_color and (C+M+Y−VMAX)/2; determining adjusted non-black primary color values Cout, Mout, Yout and a secondary value S_color such that the sum of the black color value K, the adjusted non-black primary color values Cout, Mout, Yout, and the secondary color value S_color is equal to the predetermined maximum value VMAX; and half-toning K, Cout, Mout, Yout, and S_color.

BACKGROUND

The subject disclosure is generally directed to color printer half-toning.

Raster type printers, which have been implemented with various print engines such as electrophotographic print engines and ink jet print engines, commonly employ half-toning to transform continuous tone image data to print data that can be printed as an array of dots that can be of substantially similar size. For example, 24 bit/pixel continuous tone image data can be half-toned to a plurality of single color one-bit per pixel bit-maps. It can be difficult to achieve substantially uniform or even distribution of the half-toned dots.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic block diagram of an embodiment of a printing system.

FIG. 2 is a schematic illustration of an embodiment of a pixel array.

FIGS. 3 and 4 set forth is a schematic flow diagram of an embodiment of a procedure for printing a pixel of print data.

FIG. 5 is a schematic diagram of an embodiment of a stochastic threshold array.

FIGS. 6 and 7 set forth a schematic flow diagram of an embodiment of another procedure for printing a pixel of print data.

DETAILED DESCRIPTION

FIG. 1 is a schematic block diagram of an embodiment of a printing apparatus that includes an interface 31 that receives print data, for example from a host computer, and stores the print data in a buffer memory 33. A processor 35 is configured to process the print data to produce bit mapped raster data that is stored in a memory 37. A print engine 39 prints an image pursuant to the bit mapped raster data generated by the processor 35. The print engine 39 can be an electrophotographic print engine or an ink jet print engine, for example.

Printing is accomplished by selectively printing, depositing, applying or otherwise forming markings such as dots on a receiver surface or substrate that can be a print output medium such as paper or a transfer surface such as a transfer belt or drum. If a transfer surface is used, the image formed or printed on the transfer surface is appropriately transferred to a print output medium such as paper.

FIG. 2 is a schematic illustration of an embodiment of an array 20 of pixel locations P that can be used to define the locations on a print output medium 41 that can be marked or printed. A marking of a particular primary color (e.g., cyan magenta, yellow or black) that is printed or deposited at a pixel location can be conveniently called a dot.

Each pixel location P can, for example, be marked or printed with (a) one or more non-black primary color dots (e.g., cyan, magenta or yellow), (b) a black dot by itself, or (c) a black dot and at least one non-black primary color dot.

Print data typically comprises continuous tone data (such as 32-bit or 24-bit pixel data), and halftoning (e.g., using one or more halftone threshold arrays) is commonly employed to map or transform continuous tone data to a halftoned bit map that contains one bit per pixel per primary color plane, for example.

FIGS. 3 and 4 set forth a schematic flow diagram of an embodiment of a procedure for printing a pixel of C, M, Y print data. At 111 C, M, Y values are received. At 113 the values of C, M, Y are assigned to Cout, Mout, Yout; and K and the secondary color variables R (red), G (green) and B (blue) are initialized to zero (0). At 115 a determination is made as to whether C+M+Y is greater than a predetermined maximum color value such as 255. If no, processing continues at 127.

If the determination at 115 is yes, at 117 the maximum of C, M, Y is assigned to max_color, the middle value of C, M, Y is assigned to mid_color, and the minimum of C, M, Y is assigned to min_color.

At 119 a value for K (black) is selected that is between a maximum of zero (0) and (max_color+2*min_color−255)/2, and a minimum of min_color and (C+M+Y−255)/2): MAX(0,(max_color+2*min_color−255)/2)≦K≦MIN(min_color, (C+M+Y−255)/2)  (Equation 1)

At 121 values for T, max_color_out, mid_color_out, min_color out, and S_color are assigned as follows: T=255−min_color+K  (Equation 2) max_color_out=T−mid_color  (Equation 3) mid_color_out=T−max_color  (Equation 4) min_color_out=min_color—K  (Equation 5) S_color=max_color+mid_color−K−T  (Equation 6)

Pursuant to the foregoing, the sum of K, max_color_out, mid_color_out, min_color_out and S-color is substantially equal to 255.

At 123 each of max_color_out, mid_color_out, min_color_out is assigned to an appropriate one of Cout, Mout, Yout, depending on the relative magnitudes of C, M, Y. For example, if C≧M≧Y, then Cout=max_color_out, Mout=mid_color_out, and Yout=min_color_out. If M≧Y≧C, then Cout=min_color_out, Mout=max_color_out, and Yout=mid_color_out. If Y≧C≧M, then Cout=mid_color_out, Mout=min_color_out, and Yout=max_color_out.

At 125, S_color is assigned to R, G, or B as a function of which two of C, M or Y contribute to the secondary color S_color. This can be accomplished, for example, by determining whether C, M or Y is the minimum of C, M, Y. If C is the minimum, then S-color is assigned to R. If M is the minimum, then S_color is assigned to G. If Y is the minimum, then S_color is assigned to B.

At 127 half-toning is performed using the following Equation 7, for example using a single stochastic half-tone threshold array having threshold values t scaled to [0, 255] for the illustrative example wherein the predetermined maximum color value is 255. FIG. 5 schematically illustrates an embodiment of a stochastic half-tone threshold array that can be employed for half-toning. If K>t, K dot is on Else if K+B>t, C, M dots are on Else if K+B+G>t, C, Y dots are on Else if K+B+G+R>t, M, Y dots are on Else if K+B+G+R+Cout>t, C dot is on Else if K+B+G+R+Cout+Mout>t, M dot is on Else if K+B+G+R+Cout+Mout+Yout>t, Y dot is on Else no dot is on (white dot)  (Equation 7)

Pursuant to the foregoing procedure, if C+M+Y is less than or equal to an illustrative example of a maximum color value of 255, a C dot, an M dot, a Y dot, or no dot is printed. Otherwise, a black color value K is selected, the color values for cyan, magenta and yellow are adjusted, and a secondary color value is determined in such a manner that the sum of K, Cout, Mout, Yout, and S_color are equal to 255. This can provide for the printing of a single primary color dot or a single secondary color; namely, a K dot, a C dot and an M dot, a C dot and a Y dot, an M dot and a Y dot, a C dot, an M dot, or a Y dot. In this manner, at most two overlapping dots can be printed at a pixel location, depending on the threshold value, and any such two overlapping dots comprise non-black primary colors that form a single secondary color B, G or R.

The equations for selecting K, adjusting the color values for cyan, magenta and yellow, and determining a secondary color value (Equations 1-6) can be arrived at as follows for the particular example wherein C≧M≧Y and C+M+Y≧255.

The C, M, Y color values can be broken down to three components: a gray component, a secondary color component, and a primary component that does not contribute to gray or a secondary color.

The gray component comprises the minimum of C, M, Y, which for this example is Y: gray=MIN(C, M, Y)=Y  (Equation 8)

The gray component can be subtracted to arrive at versions C2, M2, Y2 that can be expressed in terms of C, M, Y: C2=C−gray=C−Y  (Equation 9) M2=M−gray=M−Y  (Equation 10) Y2=Y−gray=0  (Equation 11)

The secondary color in this example is blue, and since C>M, the value for blue can be expressed as follows: Blue=M2=M−Y  (Equation 12)

Subtracting the secondary color component from C2, M2, Y2 results in: C3=C2−Blue=C−M  (Equation 13) M3=0  (Equation 14) Y3=0  (Equation 15)

In this manner, the input color C, M, Y has been broken down into three components: a gray component, a secondary color component (in this case, Blue=M−Y), and a primary component (in this case C3=C−M). The primary component can be considered that portion of the maximum of C, M, Y that does not contribute to gray or a secondary color.

The gray component can be represented by either K or non-overlapping C, M, Y dot sets: K+CMY=gray=Y  (Equation 16) wherein CMY is the amount of non-overlapped C, M, Y dot sets that contribute to the gray component. Each count of CMY represents three non-overlapped dots—one C dot, one M dot and one Y dot.

Blue can be represented by either overlapped C, M dot sets or non-overlapped dot sets: B+CM=Blue=M−Y  (Equation 17) wherein B is the amount of overlapped C, M dot sets, and CM is the amount of non-overlapped C, M dot sets that contribute to blue. Each count of CM represents two non-overlapped dots, one C dot and one M dot.

Since this derivation is for C+M+Y>255, the assumption is that there should be no white spaces, so that the coverage by the three components (gray, secondary, and primary) should add up to 255. Coverage by the gray component comprises K dots and non-overlapped C, M, Y dots, and can be represented by K+3*CMY. Coverage by the secondary component comprises overlapped C, M (blue) dots and non-overlapped C, M dots, and can be represented by B+2*CM. Coverage by the primary component comprises C3 which can be represented by C−M. Therefore: K+3*CMY+B+2*CM+C−M=255  (Equation 18)

Using Equation 16, (Y−K) can be substituted for CMY: K+3*(Y−K)+B+2*CM+C−M=255  (Equation 19)

From the foregoing, CM can be expressed as: CM=255−C−2*Y+2*K  (Equation 20)

Since CM≧0, it follows that: 255−C−2*Y+2*K≧0  (Equation 21)

The foregoing provides: K≧(C+2*Y−255)/2  (Equation 22)

Since K cannot be less than 0, a lower value of K can be expressed as: K min=MAX(0,C+2*Y−255)/2)  (Equation 23) for the condition where the coverages of the different components (gray, secondary and primary) add up to 255.

Substituting Equation 20 in Equation 17 provides the following equation for B (overlapping C, M dots): B=M−Y−CM=C+M+Y−255−2*K  (Equation 24)

Since B≧0, the right side of the foregoing is greater than 0: M−Y−CM=C+M+Y−255−2*K≧0  (Equation 25)

Rearranging the foregoing to isolate K provides: K≦(C+M+Y−255)/2  (Equation 26)

Since CMY≧0, Equation 16 provides: Y−K≧0  (Equation 27)

Rearranging the foregoing provides: K≦Y  (Equation 28)

Pursuant to Equations 26 and 28, an upper bound for K under the condition that the coverages of different components add up to 255 comprises a minimum of Y and (C+M+Y−255)/2): Kmax=MIN(Y,(C+M+Y−255)/2)  (Equation 29)

The possible dot combinations are K, B (overlapped C, M), C, M, or Y. K is selected pursuant to Equations 23 and 29, and CMY, CM, and B can be obtained pursuant to Equations 16, 20 and 17: CMY=Y−K  (Equation 30) CM=255−C−2*Y+2*K  (Equation 31) B=M−Y−CM  (Equation 32)

The amount of individual C dots, Cout, comprises the C dots from C3, CM, and CMY: $\begin{matrix} \begin{matrix} {{Cout} = {{C\quad 3} + {CM} + {CMY}}} \\ {= {C - M + Y - K + 255 - C - {2*Y} + {2*K}}} \\ {= {255 - M - Y + K}} \end{matrix} & \left( {{Equation}\quad 33} \right) \end{matrix}$

The amount of individual M dots, Mout, comprises M dots from CM and CMY: $\begin{matrix} \begin{matrix} {{Mout} = {{CM} + {CMY}}} \\ {= {Y - K + 255 - C - {2*Y} + {2*K}}} \\ {= {255 - C - Y + K}} \end{matrix} & \left( {{Equation}\quad 34} \right) \end{matrix}$

The amount of individual yellow dots comprises Y dots from CMY: $\begin{matrix} \begin{matrix} {{Yout} = {CMY}} \\ {= {Y - K}} \end{matrix} & \left( {{Equation}\quad 35} \right) \end{matrix}$

Substituting T=255−Y+K in the Equations 33 and 34 provides the following expressions for the cyan output color Cout, the magenta output color Mout, and the secondary color B: Cout=T−M  (Equation 36) Mout=T−C  (Equation 37) B=C+M−K−T  (Equation 38)

Pursuant to the foregoing, the sum of K, Cout, Mout, Yout and B is equal to 255, and the K can be selected from a range of values between Kmin and Kmax, which allows the color values to be adjusted for different printer characteristics. For example, if K is minimized, the amount of color is maximized, which can result in high quality half-toned images on a variety of printers since K, the most visible color, is substantially reduced. However, on some printers, having a uniform layer of ink can reduce the amount of noise. When K is maximized, the secondary color is reduced, which can produce better image quality. Also, when K is maximized, the amount of color ink used is reduced, which can reduce the cost of printing.

Equations 23 and 29, the equation T=255−Y+K, and Equations 36, 37, 35 and 38 are based on C≧M≧Y, and have been generalized to arrive at Equations 1-6 by substituting max_color for C, mid_color for M, and min_color for Y, wherein Equation 1 is based on Equations 23 and 29.

FIGS. 6 and 7 set forth a schematic flow diagram of an embodiment of a procedure for printing a pixel of CMYK print data. At 211 C1, M1, Y1, K1 input color values are received. At 213 the values of C1, M1, Y1, K1 are assigned to Cout, Mout, Yout, Kout; and secondary color variables R (red), G (green) and B (blue) are initialized to zero (0). At 215 a determination is made as to whether C1+M1+Y1+K1 is greater than a predetermined maximum color value such as 255. If no, processing continues at 227.

If the determination at 215 is yes, at 216 values for CMY are adjusted as follows based on the assumption that K overlapping C, M or Y will produce K: Cadj=MIN(C1, 255−K1)  (Equation 39) Madj=MIN(M1, 255−K1)  (Equation 40) Yadj=MIN(Y1, 255−K1)  (Equation 41)

Pursuant to the foregoing, the color values for C, M, Y are adjusted to arrive at effective amounts Cadj, Madj, Yadj which more closely approximate the effective contributions of cyan, magenta and yellow to the output color. In other words, cyan, magenta or yellow that is overlapped by black produces black, and the underlying cyan, magenta or yellow does not contribute to the output color. Black occupies K1, which leaves 255−K1 as the area where cyan, magenta or yellow would contribute to the output color.

At 217 the maximum of Cadj, Madj, Yadj is assigned to max_color, the middle value of Cadj, Madj, Yadj is assigned to mid_color, and the minimum of Cadj, Madj, Yadj is assigned to min_color. At 219 a value of K (black) is selected as follows: MAX(0,(max_color+2*min_color−255+K1)/2)≦K≦MIN(min_color, (Cadj+Madj+Yadj−255+K1)/2)  (Equation 42)

At 220 K1 is added to the value of K determined at 219 to arrive at a black output color value Kout: Kout=K+K1  (Equation 43)

At 221 values for T, max_color_out, mid_color_out, min_color out, and S_color are assigned as follows: T=255−K1−min_color+K  (Equation 44) max_color_out=T−mid_color  (Equation 45 ) mid_color_out=T−max_color  (Equation 46) min_color_out=min_color−K  (Equation 47) S_color=max_color+mid_color−K−T  (Equation 48)

The equations at 219 and 221 are similar to the equations at 119 and 121 of FIG. 3, except that 255 is replaced by (255−K1) which is the maximum coverage for C, M or Y. Further, at 220 K1 is added to K to arrive at a black output color value Kout.

Pursuant to the foregoing, the sum of Kout, max_color_out, mid_color_out, min_color_out and S-color is substantially equal to 255.

At 223 each of max_color_out, mid_color_out, min_color_out is assigned to an appropriate one of Cout, Mout, Yout, depending on the relative magnitudes of Cadj, Madj, Yadj. For example, if Cadj≧Madj≧Yadj, then Cout=max_color_out, Mout=mid_color_out, and Yout=min_color_out. If Madj≧Yadj≧Cadj, then Cout=min_color_out, Mout=max_color_out, and Yout=mid_color_out. If Yadj≧Cadj≧Madj, then Cout=mid_color_out, Mout=min_color_out, and Yout=max_color_out.

At 225, S_color is assigned to R, G , or B as a function of which two of Cadj, Madj or Yadj contribute to the secondary color S_color. This can be accomplished, for example, by determining whether Cadj, Madj or Yadj is the minimum of Cadj, Madj, Yadj. If Cadj is the minimum, then S-color is assigned to R. If Madj is the minimum, then S_color is assigned to G. If Yadj is the minimum, then S_color is assigned to B.

At 227 half-toning is performed using the following, for example using a single stochastic half-tone threshold array having threshold values t scaled to [0, 255] for the illustrative example wherein the predetermined maximum color value is 255. FIG. 4 schematically illustrates an embodiment of a stochastic half-tone threshold array that can be employed for half-toning. If Kout>t, K dot is on Else if Kout+B>t, C, M dots are on Else if Kout+B+G>t, C, Y dots are on Else if Kout+B+G+R>t, M, Y dots are on Else if Kout+B+G+R+Cout>t, C dot is on Else if Kout+B+G+R+Cout+Mout>t, M dot is on Else if Kout+B+G+R+Cout+Mout+Yout>t, Y dot is on Else no dot is on (white dot)  (Equation 49)

Pursuant to the procedure of FIG. 5, if C1+M1+Y1+K1 is less than an illustrative example of a maximum color value of 255, a K, C, M, Y, or no dot is printed. Otherwise, the cyan, magenta and yellow color values are initially adjusted on the assumption that cyan, magenta or yellow overlapping with black produces black, a black color value Kout is selected on the basis of the initially adjusted cyan, magenta and yellow values and K1, the initially adjusted cyan, magenta and yellow color values are further adjusted, and a secondary color value is determined in such a manner that the sum of Kout, Cout, Mout, Yout, and S_color are equal to 255. This provides for the printing of a single primary color dot or a single secondary color; namely, a K dot, a C dot and an M dot, a C dot and a Y dot, an M dot and a Y dot, a C dot, an M dot, or a Y dot. In this manner, at most two overlapping dots can be printed at a pixel location, depending on the threshold value, and such two overlapping dots comprise non-black primary colors that form a single secondary color.

The claims, as originally presented and as they may be amended, encompass variations, alternatives, modifications, improvements, equivalents, and substantial equivalents of the embodiments and teachings disclosed herein, including those that are presently unforeseen or unappreciated, and that, for example, may arise from applicants/patentees and others. 

1. A method of printing a pixel defined by C, M, Y color values having a sum that is not less than a predetermined maximum VMAX, comprising: assigning a maximum of the C, M, Y values to max_color; assigning a middle of the C, M, Y values to mid_color; assigning a minimum of the C, M, Y values to min_color; selecting a black color value K that is not greater than a minimum of min_color and (C+M+Y−VMAX)/2; obtaining a max_color_out value by calculating (T−mid_color), wherein T=VMAX−min_color+K; obtaining a mid_color_out value by calculating (T−max_color); obtaining a min_color_out value by calculating (min_color−K); obtaining a secondary color value S_color by calculating (max_color+mid_color−K−T); assigning each of max_color_out, mid_color_out and min_color_out to one of Cout, Mout or Yout depending on the relative magnitudes of the C, M, Y color values; and half-toning K, Cout, Mout, Yout, and S_color.
 2. The method of claim 1 wherein half-toning K, Cout, Mout, Yout and S_color comprises half-toning K, Cout, Mout, Yout and S-color using a single threshold array.
 3. A method of printing a pixel defined by C, M, Y color values having a sum that is not less than a predetermined maximum value VMAX, comprising: assigning a maximum of the C, M, Y values to max_color; assigning a minimum of the C, M, Y values to min_color; selecting a black color value K that is not greater than a minimum of min_color and (C+M+Y−VMAX)/2 and not less than a maximum of zero and (max_color+2*min_color−VMAX)/2; determining non-black primary color output values Cout, Mout, Yout and a secondary value S_color such that the sum of the black color value K, the non-black primary color output values Cout, Mout, Yout, and the secondary color value S_color is equal to the predetermined maximum value VMAX; and half-toning K, Cout, Mout, Yout, and S_color.
 4. The method of claim 3 wherein half-toning K, Cout, Mout, Yout and S_color comprises half-toning K, Cout, Mout, Yout and S_color using a single threshold array.
 5. A method of printing a pixel defined by C, M, Y color values having a sum that is not less than a predetermined maximum VMAX, comprising: assigning a maximum of the C, M, Y values to max_color; assigning a middle of the C, M, Y values to mid_color; assigning a minimum of the C, M, Y values to min_color; selecting a black color value K that is not greater than a minimum of min_color and (C+M+Y−VMAX)/2 and not less than a maximum of zero and (max_color+2*min_color−VMAX)/2; obtaining a max_color_out value by calculating (T−mid_color), wherein T=VMAX−min_color+K; obtaining a mid_color_out value by calculating (T−max_color); obtaining a min_color_out value by calculating (min_color−K); obtaining a secondary color value S_color by calculating (max_color+mid_color−K−T); assigning each of max_color_out, mid_color_out and min_color_out to one of Cout, Mout or Yout depending on the relative magnitudes of the C, M, Y color values; and half-toning K, Cout, Mout, Yout, and S_color.
 6. The method of claim 5 wherein half-toning K, Cout, Mout, Yout and S_color comprises half-toning K, Cout, Mout, Yout and S_color using a single threshold array. 